<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Title</title>
</head>
<body>
<form action="/setPermsToRole" method="post">
  <input type="hidden" value="${roleCode}"/>
  <c:forEach items="${menus}" var="menu">
    <c:if test="${menu.menuStatus==1}">
      <input name="menuCodes" type="checkbox" value="${menu.menuCode}"/>${menu.menuName}<br>
    </c:if>
  </c:forEach>
  <input type="submit" value="分配权限">
</form>
</body>
</html>
